package com.v0710.esbconver.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;

@Data
@Slf4j
public class ExcelData {

    /**
     * 用来判断是否下一个是字段
     */
    @ExcelProperty(index = 0)
    private String flag="";

    /**
     * 交易码
     */
    @ExcelProperty(index = 1)
    private String trandCode="";

    @ExcelProperty(index = 8)
    private String nameEnglish="";

    @ExcelProperty(index = 9)
    private String nameChinese="";

    @ExcelProperty(index = 10)
    private String dataType="";
    /*约束*/
    @ExcelProperty(index = 12)
    private String constraint="";
    /*是否必输*/
    @ExcelProperty(index = 13)
    private String required="";

    @ExcelProperty(index = 14)
    private String arryFlag="";

    public void setConstraint(String constraint) {
        if(constraint!=null){
            this.constraint = constraint.replace("\n"," ").replace("\r"," ");
        }

    }
}
